<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="https://unpkg.com/swiper@8/swiper-bundle.min.css">  
    <link rel="stylesheet" href="./src/animate.min.css">  
  
</head>
<body>
    <div class="swiper-slide">
        <p class="ani" swiper-animate-effect="fadeInUp" swiper-animate-duration="0.5s" swiper-animate-delay="0.3s">内容</p>
        </div>
    <script src="./src/swiper-bundle.min.js"></script>
    <script src="./src/swiper.animate1.0.3.min.js"></script>
    <script> 
        //Swiper5
          var mySwiper = new Swiper ('.swiper-slide', {
            on:{
              init: function(){
                swiperAnimateCache(this); //隐藏动画元素 
                swiperAnimate(this); //初始化完成开始动画
              }, 
              slideChangeTransitionEnd: function(){ 
                swiperAnimate(this); //每个slide切换结束时也运行当前slide动画
                //this.slides.eq(this.activeIndex).find('.ani').removeClass('ani'); 动画只展现一次，去除ani类名
              } 
            }
          }) 
          </script>

</body>
</html>